<?php
/**
 * img.php
 * 取回图片
 * @author: Skiychan <developer@zzzzy.com>
 * @created: 2015/1/29
 * @modified:
 */

$id = isset($_GET['id']) ? (int)$_GET['id'] : 1;

$imgs = array();

if ($_SERVER["SERVER_NAME"] == '127.0.0.1') {	 
    $url = "http://127.0.0.1/git/stock/create.php?".$_SERVER["QUERY_STRING"];
} else {
    $url = "http://c.zzzzy.com/stock/create.php?".$_SERVER["QUERY_STRING"];
}

$imgurls[] = $url."&type=line";
$imgurls[] = $url."&type=bar";

foreach ($imgurls as $value) {
	echo "<a href='{$value}' target='_blank'><img src='{$value}' alt='img' /><br />";
}